package net.huashitong.ssydt.exam.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import net.huashitong.ssydt.exam.entity.SsExamErrorQuestion;
import net.huashitong.ssydt.exam.entity.SsExamQuestion;

import java.io.Serializable;
import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.09.06
 */
public class QuestionErrorVO implements Serializable {

    private static final long serialVersionUID = -4899424502650583034L;

    @ApiModelProperty(value = "错题集名称")
    private String errorTitle;//错题集名称
    @ApiModelProperty(value = "上次位置")
    private Integer indexNumber;//上次位置
    @ApiModelProperty(value = "题目数")
    private Integer questionNumber;//题目数
    @ApiModelProperty(value = "所属年月")
    private String belongYearMonth;//所属年月
    @ApiModelProperty(value = "选择题列表")
    private List<ErrorQuestion> questions;

    public String getErrorTitle() {
        return errorTitle;
    }

    public void setErrorTitle(String errorTitle) {
        this.errorTitle = errorTitle;
    }

    public Integer getIndexNumber() {
        return indexNumber;
    }

    public void setIndexNumber(Integer indexNumber) {
        this.indexNumber = indexNumber;
    }

    public Integer getQuestionNumber() {
        return questionNumber;
    }

    public void setQuestionNumber(Integer questionNumber) {
        this.questionNumber = questionNumber;
    }

    public String getBelongYearMonth() {
        return belongYearMonth;
    }

    public void setBelongYearMonth(String belongYearMonth) {
        this.belongYearMonth = belongYearMonth;
    }

    public List<ErrorQuestion> getQuestions() {
        return questions;
    }

    public void setQuestions(List<ErrorQuestion> questions) {
        this.questions = questions;
    }

    public static class ErrorQuestion extends BaseQuestion {

        private static final long serialVersionUID = -3123238515934605782L;

        @ApiModelProperty(value = "错题表Id")
        private Long errorQuestionId;//错题表Id

        public ErrorQuestion(SsExamErrorQuestion ssExamErrorQuestion, SsExamQuestion ssExamQuestion) {
            super(ssExamQuestion);
            this.errorQuestionId = ssExamErrorQuestion.getId();

        }

        public Long getErrorQuestionId() {
            return errorQuestionId;
        }

        public void setErrorQuestionId(Long errorQuestionId) {
            this.errorQuestionId = errorQuestionId;
        }

    }
}
